const http = require('http')

http.createServer((req, res) => {
    console.log(req.method, req.url)
    res.end('hello world\n');
}).listen(8000, () => {
    console.log('localhost:8000')
})
